<include file="Public:header" />
<div class="headbar">
    <div class="position"><span>商品</span><span>></span><span>模型管理</span><span>></span><span>模型列表</span></div>
    <div class="operating">
        <a href="{:U('Goods/model_edit')}"><button class="operating_btn" type="button" ><span class="addition">添加模型</span></button></a>
        <a href="javascript:void(0)"><button class="operating_btn" type="button"  onclick="selectAll('id[]')"><span class="sel_all">全选</span></button></a>
        <a href="javascript:void(0)"><button class="operating_btn" type="button" onclick="delModel()"><span class="delete">批量删除</span></button></a>
    </div>
</div>
<div class="content">
    <form name="ModelForm" action="{:U('Goods/model_del')}" method="post">
        <table class="list_table" cellpadding="0" cellspacing="0">
            <colgroup>
                <col width="40px" />
                <col width="220px" />
                <col width="105px" />
            </colgroup>

            <thead>
                <tr>
                    <th>选择</th>
                    <th>模型名称</th>
                    <th>操作</th>
                </tr>
            </thead>

            <tbody>
            <foreach name='model' item='item' key='key'>
                <tr>
                    <td><input name="id[]" type="checkbox" value="{$item['id']}" /></td>
                    <td>{$item['name']}</td>
                    <td>
                        <a href="{:U('Goods/model_edit', array('id' => $item[id]))}"><img class="operator" src="__PUBLIC__/Partner/images/admin/icon_edit.gif" alt="编辑" /></a>
                        <a href="javascript:delModel({link:'{:U('Goods/model_del', array('id' => $item[id]))}"><img class="operator" src="__PUBLIC__/Partner/images/admin/icon_del.gif" alt="删除" /></a>
                    </td>
                </tr>
            </foreach>
            </tbody>
        </table>
    </form>
</div>
{$page}
<include file="Public:footer" />